﻿using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSite.Model;

namespace WebSite.Data.NH.Repositories.Mappings
{
    public class LinksMap : ClassMap<LinksInfo>
    {

        public LinksMap()
        {
            Table("LinksInfo");
            LazyLoad();
            Id(x => x.Id).GeneratedBy.Identity().Column("Id");
            Map(x => x.CompanyId).Column("CompanyId").Not.Nullable();
            Map(x => x.Title).Column("Title");
            Map(x => x.Url).Column("Url");
            Map(x => x.ImgUrl).Column("ImgUrl");
        }
    }
}
